package librairies.date;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Test;

public class DateNowTest 
{
	@Test
	public void nowtest()	//ok
	{
		DateNow now = new DateNow();
		Date date = new Date();
		
		String anneeN = now.getAnnee();
		String anneeD = new Integer(date.getYear() - 100 + 2000).toString();
		
		assertTrue(anneeN.equals(anneeD));
	}
}
